<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/tag.jsp"%>
<div class="bjui-pageHeader">
    <form id="pagerForm"  action="answer/test/testList.do" data-toggle="ajaxsearch" data-reload-navtab="true"  method="post">
        <ul class="bjui-searchBar">
            <li><label>菜单名：</label><input type="text" value="" name="title" class="form-control" size="15" /></li>
            <li><button type="submit" class="btn-default" data-icon="search">查询</button></li>
            <li><a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a></li>
            <li class="pull-right">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">复选框-批量操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        <li><a href="book1.xlsx" data-toggle="doexport" data-confirm-msg="确定要导出信息吗？">导出<span style="color: green;">全部</span></a></li>
                        <li><a href="book1.xlsx" data-toggle="doexportchecked" data-confirm-msg="确定要导出选中项吗？" data-idname="expids" data-group="ids">导出<span style="color: red;">选中</span></a></li>
                        <li class="divider"></li>
                        <li>
                        	<a href="system/deleteMenu.do" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" 
                        		data-idname="delids" data-group="ids">删除选中</a>
                        </li>
                    </ul>
                </div>
            </li>
        </ul> 
    </form>
</div>
<div class="bjui-pageContent">
<%--	<div class="bjui-headBar">--%>
<%--		<ul>--%>
<%--			<li class="left">--%>
<%--			<a href="answer/test/toAddTest.do" class="btn btn-red" data-toggle="dialog" --%>
<%--				data-width="650" data-height="400"   data-mask="true" data-reload-navtab="true" >添加</a>--%>
<%--			</li>--%>
<%--		</ul>--%>
<%--	</div>--%>
	<table class="table table-bordered table-hover table-striped table-top" data-layout-h="0" data-toggle="tablefixed" 
		data-width="100%"  data-nowrap="true">
        <thead>
            <tr align="center">
				<th align="center" width="3"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
                <th align="center" width="25">题目</th>
                <th align="center" width="10">发起时间</th>
                <th align="center" width="10">考试时间</th>
                <th align="center" width="10">终止时间</th>
                <th align="center" width="30">考试操作</th>
            </tr>
        </thead>
        <tbody>
        	<c:choose>
			<c:when test="${not empty list}">
				<c:forEach items="${list}" var="test">
					 <tr align="center">
						<td ><input type="checkbox" class="checkboxCtrl" name="ids" data-toggle="icheck" value="${test.id}"></td>
		                <td align="left">${test.title}</td>
						<td align="left"></td>
						<td align="left"></td>
						<td align="left"></td>
						<td align="left">
							<a href="answer/test/toTest.do?testid=${test.id}"  class="btn btn-green"
							data-toggle="navtab" data-width="600" data-height="300"   data-mask="true" data-reload-navtab="true" >开始考试</a>
						</td>
		            </tr>
				</c:forEach>
			</c:when>
			<c:otherwise>
				<tr align="center">
					<td colspan="6">
						没有相关数据
					</td>
				</tr>
			</c:otherwise>
		</c:choose>
        </tbody>
    </table>
    <%@include file="/common/paging.jsp" %>
</div>